﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lihong.Cms.Entity
{
    /// <summary>
    /// 新闻
    /// </summary>
    public class News : BaseEntity, ICreatedOn
    {
        /// <summary>
        /// 所在分类
        /// </summary>
        public int CategoryId { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime CreatedOn { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 作者
        /// </summary>
        public string Author { get; set; }

        /// <summary>
        /// 来源
        /// </summary>
        public string Source { get; set; }

        /// <summary>
        /// 浏览次数
        /// </summary>
        public int ViewCount { get; set; }

        /// <summary>
        /// 新闻图片
        /// </summary>
        public string Picture { get; set; }
    }
}
